Since the move to Clutter.grab() in commit
f4cae72d17af6, the
parameter doesn't do anything anymore.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>
this._dialog = new constructor(this._lockDialogGroup);
- let time = global.get_current_time();
- if (!this._dialog.open(time)) {
+ if (!this._dialog.open()) {
// This is kind of an impossible error: we're already modal
// by the time we reach this...
log('Could not open login dialog: failed to acquire grab');
this._authPrompt.finish(onComplete);
}
- open(timestamp) {
+ open() {
this.show();
if (this._isModal)
return true;
- let modalParams = {
- timestamp,
- actionMode: Shell.ActionMode.UNLOCK_SCREEN,
- };
- let grab = Main.pushModal(Main.uiGroup, modalParams);
+ const grab = Main.pushModal(Main.uiGroup,
+ {actionMode: Shell.ActionMode.UNLOCK_SCREEN});
if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
Main.popModal(grab);
return false;
this._showPrompt();
}
- popModal(timestamp) {
+ popModal() {
if (this._isModal) {
- Main.popModal(this._grab, timestamp);
+ Main.popModal(this._grab);
this._grab = null;
this._isModal = false;
}